﻿using System;

namespace ExFlash.Tags
{
    public class RemoveObjectTag : Tag
    {
        public UInt16 CharacterId
        {
            get;
            protected set;
        }

        public UInt16 Depth
        {
            get;
            protected set;
        }

        public RemoveObjectTag(int len, Int32 offset)
            : base(TagCodes.RemoveObject, len, offset)
        {

        }
        
        public override void SwfDeserialize(BinaryBitReader reader)
        {
            CharacterId = reader.ReadUInt16();

            Depth = reader.ReadUInt16();
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
